//
//  LTClassDetaiTableViewCell.m
//  LearnTeacher
//
//  Created by zyl on 2024/4/11.
//

#import "LTClassDetaiTableViewCell.h"

@implementation LTClassDetaiTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
  
    [self.headerImg setAllCornersWithCornerRadius:24];
    self.bgView.layer.backgroundColor = [UIColor colorWithRed:255/255.0 green:255/255.0 blue:255/255.0 alpha:1.0].CGColor;
    self.bgView.layer.cornerRadius = 12;
    self.bgView.layer.shadowColor = [UIColor colorWithRed:0/255.0 green:50/255.0 blue:83/255.0 alpha:0.0500].CGColor;
    self.bgView.layer.shadowOffset = CGSizeMake(0,2);
    self.bgView.layer.shadowOpacity = 1;
    self.bgView.layer.shadowRadius = 12;
    
}

- (void)setModel:(LTCLassDetailStudentModel *)model
{
    _model = model;
    self.nameLab.text = model.nickname;
    self.accountLab.text = [NSString stringWithFormat:@"账号：%@",model.username];
    [self.headerImg sd_setImageWithURL:[NSURL URLWithString:model.avatar]];
}

@end
